// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

import VueRouter from 'vue-router'
import VueResource from 'vue-resource'

import Router from './router'

Vue.use(VueRouter);    // 注册插件
Vue.use(VueResource);

const router = new VueRouter(Router)    // 传入路由配置

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router: router,
    render: h => h(App)
})
